package com.huawei.esdk.uc.sametime.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import com.huawei.esdk.uc.sametime.EsdkPluginActivator;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = EsdkPluginActivator.getDefault().getPreferenceStore();
		
		store.setDefault(PreferenceConstants.P_USERNAME, "");
		store.setDefault(PreferenceConstants.P_PASSWORD, "");
		store.setDefault(PreferenceConstants.P_UCSVRIP, "");
		store.setDefault(PreferenceConstants.P_PORT, 8081);
		store.setDefault(PreferenceConstants.P_ANSWERMODE, "0");
//		store.setDefault(PreferenceConstants.P_UC_NUMBER, "");
		store.setDefault(PreferenceConstants.P_NUMBER_1, "");
		store.setDefault(PreferenceConstants.P_NUMBER_2, "");
		store.setDefault(PreferenceConstants.P_NUMBER_3, "");
		store.setDefault(PreferenceConstants.P_MIRCOPHONE, "0");
		store.setDefault(PreferenceConstants.P_SPEAKER, "0");
//		store.setDefault(PreferenceConstants.P_RINGTONE, "");
		store.setDefault(PreferenceConstants.P_CAMERA, "0");
		store.setDefault(PreferenceConstants.P_LANG, "Chinese");
//		store.setDefault(PreferenceConstants.P_DEVICE_TYPE, "0");
		
	}

}
